package net.prasenjit.test.bpmn.activity;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.apache.commons.lang.math.RandomUtils;

/**
 * Created with IntelliJ IDEA.
 * User: PPurohit
 * Date: 8/22/14
 * Time: 12:23 PM
 * To change this template use File | Settings | File Templates.
 */
public class MyBpmTask implements JavaDelegate {
    @Override
    public void execute(DelegateExecution delegateExecution) throws Exception {
        delegateExecution.setVariable("log", RandomUtils.nextBoolean());
    }
}
